home *** CD-ROM | disk | FTP | other *** search
/ PC Play 129 / pc play 129.iso / Demo / man2 / man2.exe / data / scripts / STARSHIP_EFFECTS_SCRIPTS / starship_fly3.lua < prev   
Encoding:
Text File  |  2007-01-25  |  3.6 KB  |  169 lines

  1. desc = getEffectDescriptionP(ENET_EFFECT_PS_STARSHIP_FLY3)
  2.  
  3. desc.ClassID = ENCLASS_SIMPLEPARTICLESYSTEM
  4. desc.EffectClassType = ENECT_PARTICLESYSTEM
  5.  
  6. desc.ScriptSet = ENSCRIPTSET_UNKNOWN
  7. desc.RelativePosition = ENLOCALPOS_NOTSPECIFIED
  8. local vzbzd1 = D3DXVECTOR3:new(0,0,0)
  9. desc.LocalPosition = vzbzd1
  10. vzbzd1:delete()
  11. desc.isAnimateTexture = false
  12. desc.RenderType = ENRENDERTYPE_GEOMETRY
  13.  
  14. Emitter = desc.PS.PSDescription
  15. Emitter.ParticleTypesNumber = 1
  16. local vzbzd2 = D3DXVECTOR3:new(0,0,0)
  17. Emitter.EmitterPosition = vzbzd2
  18. vzbzd2:delete()
  19. local vzbzd3 = D3DXVECTOR3:new(0,0,0)
  20. Emitter.EmitterDirection = vzbzd3
  21. vzbzd3:delete()
  22. Emitter.EmitterLifeTime = 1
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50. PT = Emitter.ParticleTypesParams[1]
  51. PT.IsEmitterLocked = true
  52. PT.DrawOrder = 1
  53. PT.Material = ENMAT_PARTICLE_LIGHT
  54.  
  55.  
  56. PT.TextureName = "submarine_effect_tracesmoke.dds"
  57.  
  58. PT.ParticlesPerSecond = 20.0;
  59. PT.InitialNumberOfParticles = 0.0;
  60. PT.BaseLifeTime = 0.6;
  61. PT.BaseLifeTimeVariance = 0.0;
  62. PT.BaseSpeed = 0.0;
  63. PT.BaseSpeedVariance = 0.0;
  64.  
  65. PT.TangentSpeed = 0.0;
  66. PT.TangentSpeedVariance = 0.0;
  67. local vzbzd4 = D3DXVECTOR3:new(1.0,0.0,0.0)
  68. PT.TangentDirection = vzbzd4
  69. vzbzd4:delete()
  70. PT.TangentAngleMin = 0.0;
  71. PT.TangentAngleMax = 6.28;
  72. PT.IsTangentDependOnBase = false;
  73.  
  74. PT.BaseAngle = 3.0;
  75. PT.BaseAngleVariance = 5.0;
  76. PT.BaseAngleSpeed = 0.2;
  77. PT.BaseAngleSpeedVariance = 0.3;
  78. PT.BaseAngleSpeedDirection = 0;
  79. local vzbzd5 = D3DXVECTOR3:new(0.0,0.0,0.0)
  80. PT.BaseDirection = vzbzd5
  81. vzbzd5:delete()
  82. local vzbzd6 = D3DXVECTOR3:new(0.0,0.0,0.0)
  83. PT.BaseDirectionVariance = vzbzd6
  84. vzbzd6:delete()
  85. local vzbzd7 = D3DXVECTOR3:new(0,3,0)
  86. PT.BasePosition = vzbzd7
  87. vzbzd7:delete()
  88. local vzbzd8 = D3DXVECTOR3:new(3,3,3)
  89. PT.BasePositionVariance = vzbzd8
  90. vzbzd8:delete()
  91. PT.BaseSize = 4.0;
  92. PT.BaseSizeVariance = 0.2;
  93.  
  94. -- color over time
  95. PT.ColorOverTimeR[1].TimePercent = 0.0;
  96. PT.ColorOverTimeR[1].Value = 1.0;
  97. PT.ColorOverTimeG[1].TimePercent = 0.0;
  98. PT.ColorOverTimeG[1].Value = 0.7;
  99. PT.ColorOverTimeB[1].TimePercent = 0.0;
  100. PT.ColorOverTimeB[1].Value = 0.4;
  101.  
  102. PT.ColorOverTimeR[2].TimePercent = 1.0;
  103. PT.ColorOverTimeR[2].Value = 1.0;
  104. PT.ColorOverTimeG[2].TimePercent = 1.0;
  105. PT.ColorOverTimeG[2].Value = 0.7;
  106. PT.ColorOverTimeB[2].TimePercent = 1.0;
  107. PT.ColorOverTimeB[2].Value = 0.4;
  108.  
  109. -- transparency over time
  110. PT.TransparencyOverTime[1].TimePercent = 0.0;
  111. PT.TransparencyOverTime[1].Value = 0.3;
  112.  
  113. PT.TransparencyOverTime[2].TimePercent = 1.0;
  114. PT.TransparencyOverTime[2].Value = 0.0;
  115.  
  116. -- size over time
  117. PT.SizeOverTime[1].TimePercent = 0.0;
  118. PT.SizeOverTime[1].Value = 6.0;
  119.  
  120. PT.SizeOverTime[2].TimePercent = 1.0;
  121. PT.SizeOverTime[2].Value = 10.0;
  122.  
  123. -- Speed over time
  124. PT.SpeedOverTime[1].TimePercent = 0.0;
  125. PT.SpeedOverTime[1].Value = 0.0;
  126.  
  127. PT.SpeedOverTime[2].TimePercent = 0.5;
  128. PT.SpeedOverTime[2].Value = 0.0;
  129.  
  130. PT.SpeedOverTime[3].TimePercent = 1.0;
  131. PT.SpeedOverTime[3].Value = 0.0;
  132.  
  133. -- Tangent Speed over time
  134. PT.TangentSpeedOverTime[1].TimePercent = 0.0;
  135. PT.TangentSpeedOverTime[1].Value = 0.0;
  136.  
  137. PT.TangentSpeedOverTime[2].TimePercent = 0.1;
  138. PT.TangentSpeedOverTime[2].Value = 0.0;
  139.  
  140. PT.TangentSpeedOverTime[3].TimePercent = 1.0;
  141. PT.TangentSpeedOverTime[3].Value = 0.0;
  142.  
  143.  
  144. -- GravityAcceleration over time
  145. PT.GravityAccelerationOverTime[1].TimePercent = 0.0;
  146. PT.GravityAccelerationOverTime[1].Value = 0.0;
  147.  
  148. PT.GravityAccelerationOverTime[2].TimePercent = 1.0;
  149. PT.GravityAccelerationOverTime[2].Value = 0.0;
  150.  
  151. -- AngleSpeed over time
  152. PT.AngleSpeedOverTime[1].TimePercent = 0.0;
  153. PT.AngleSpeedOverTime[1].Value = 1.0;
  154.  
  155. PT.AngleSpeedOverTime[2].TimePercent = 1.0;
  156. PT.AngleSpeedOverTime[2].Value = 2.0;
  157.  
  158.  
  159.  
  160.  
  161.  
  162.  
  163.  
  164.  
  165.  
  166.  
  167.  
  168.  
  169.